package kr.ac.jejuuniv.controller;

import kr.ac.jejuuniv.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/modify")
public class UserModify {
	@Autowired
	private UserService userService;
	
	@RequestMapping
	public ModelAndView action(@RequestParam String id) {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.addObject("user", userService.get(id));
		return modelAndView;
	}
}
